package problem4;

public class Softdrinks extends Drinks{
    double sugarcontent;

    public Softdrinks(String brand, double sugarcontent) {
        super(brand);
        this.sugarcontent = sugarcontent;
    }

    @Override
    String advertisement() {
        return "This product contains sugar.";
    }

    @Override
    String component() {
        return "sugarcontent:" + sugarcontent;
    }
}
